package com.lnu.information;

/**
 * @author : jian.zhang-2
 * @description:
 * @date : Create in 4:02 PM 2022/4/7
 * @modified By :
 */
public class Circle implements Shape{
    double r;
    final double PI = 3.1415;

    public Circle(double r) {
        super();
        this.r = r;
    }

    public Circle() {
    }

    public double getGirth(){
        return 2 * PI * r;
    }
    public double getArea(){
        return PI * r * r;
    }
}
